package com.ruoyi.system.service.impl;

import com.ruoyi.system.api.domain.TbDriver;
import com.ruoyi.system.domain.vo.TbDriverVo;
import com.ruoyi.system.mapper.DriverMapper;
import com.ruoyi.system.service.DriverService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DriverServiceImpl implements DriverService {

    @Resource
    private DriverMapper driverMapper;

    @Override
    public TbDriverVo getDriverInfo(Integer driverId){
        return driverMapper.getDriverInfo(driverId);
    }

    @Override
    public void updateDriverInfo(TbDriver tbDriver) {
        driverMapper.updateDriverInfo(tbDriver);
    }
}
